<?= frm('home/signup', array('method' => 'post', 'class' => 'signup')) ?>
<?php
$form_attributes = $GLOBALS['table']['users'];
collect_inputs($form_attributes);
//p($form_attributes);
?>

<table class="log-in-frm">
    <tr>
        <td colspan="2" class="alert-2"  style="text-align: right">
            &nbsp;
        </td>
    </tr>
    <?php foreach ($form_attributes as $i => $v): ?>
        <tr>
            <td class="form-label"><label><?= $v['label'] ?></label></td>
            <td class="form-input" cin="<?= $i ?>"><?= $v['input'] ?></td>
        </tr>
    <?php endforeach; ?>


    <tr>
        <td>Captcha Code</td>
        <td>
            <image src="<?= BASE_URL . 'home/captcha/1' ?>" class="captcha"/>
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td class="form-input">
            <?= generate_input_element('captcha', array('class' => 'required')) ?>
        </td>
    </tr>
    <tr>
        <td colspan="2" align="right">
            <?= generate_input_element('save', array('type' => 'submit', 'value' => 'Sign-up')) ?>
        </td>
    </tr>    
    <tr>
        <td colspan="2" style="border-top:solid grey 1px;text-align: right">
            &nbsp;
            <?= img('preloader-2.gif', array('class' => 'preloader-2 hide')) ?>
        </td>
    </tr>

</table>
<?= form_close() ?>